#ifndef APP_USER_CLASS
#define APP_USER_CLASS 
#include <string>
#include <iostream>
#include <highgui.h>
#include <cv.h>
#include <imgcodecs.hpp>
#include <imgproc.hpp>
#include <unordered_map>
#include <time.h>

using namespace std;
using namespace cv;

//description of an user
struct User{
	//user name
	string name;
	//user id
	long long userId;
	
	User(string _name, long long _id){
		name = _name;
		userId = _id;		
	}
};
//store all users
class AppUser{
private:
	unordered_map<long long, User*> users;
public:
	bool insertUser(User& newUser);
	bool deleteUser(long long userId);
	pair<User*, bool> searchUser(long long userId);
};

#endif